package com.wwg.threads.binghe.concurrent.executor.callable;

import com.wwg.vo.AbstractModel;

import java.io.Serializable;

public class TaskResult<R> extends AbstractModel implements Serializable {

    private static final long serialVersionUID = 1736438349644008682L;

    private String errorMessage;
    private R result;
    private boolean isSuccess;

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public R getResult() {
        return result;
    }

    public void setResult(R result) {
        this.result = result;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }
}
